<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>辅助资料-文化程度</title>
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<script type="text/javascript" charSet="UTF-8"
			src="<%=request.getContextPath()%>/js/sorttable.js"></script>
		<script type="text/JavaScript" charSet="UTF-8"
			src="<%=request.getContextPath()%>/js/public.js"></script>
		<script type="text/javascript" charSet="UTF-8"
			src="<%=request.getContextPath()%>/js/date1.js"></script>
		<script type="text/javascript" charSet="UTF-8"
			src="<%=request.getContextPath()%>/js/checkboxSelect.js"></script>
		<script type="text/javascript" charSet="UTF-8"
			src="<%=request.getContextPath()%>/js/validate.js"></script>
		<script type="text/javascript">
			function validate()
			{	
				var code = document.getElementById("code");
				var name = document.getElementById("name");
						
				//验证行业代码
				if(!isNull(code,'代码') && !f_check_number(code,'代码') || !f_check_stringLength(code, '代码', 12))
					return false ;
						
				//验证行业名称
				if(!isNull(name,'名称') && f_check_ZhOrNumOrLett(name,'名称') || !f_check_stringLength(code, '名称', 12))
					return false ;			
			}		
		</script>
	</head>
	
	<body>
		<div id="info_all">
			<div id="info_top">
				文化程度
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="selectCulture.action" method="post" theme="simple"
				onsubmit="return validate()">
				<div id="info_main">
					<div id="select">
						<hr>
						<table>
							<tr>
								<td>
									代码&nbsp;
								</td>
								<td>
									<s:textfield name="culture.cultureCode" size="12" id="code"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
								<td>
									名称&nbsp;
								</td>
								<td>
									<s:textfield name="culture.cultureName" size="12" id="name"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
							</tr>
						</table>
					</div>
					<div class="sele">
						<input type="submit" value="查询" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" id="btnsize" />
						<input type="reset" value="重置" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" id="btnsize" />
						<hr>
					</div>
					<!-- 信息显示栏 -->
					<div id="info_info0">
						<table id="info_table" width="310px" cellspacing=1px
							cellpadding=1px class="sortable" align="center">
							<thead>
								<tr>
									<th width="100px">
										代码
									</th>
									<th width="100px">
										名称
									</th>

								</tr>
							</thead>
							<tbody>
								<s:if test="!cultureList.isEmpty()">
									<s:iterator value="cultureList" status="stat">
										<tr
											ondblclick="childToParent('cultureId','<s:property value="cultureId"/>','cultureName','<s:property value="cultureName"/>')">
											<td>
												<s:property value="cultureCode" />
											</td>
											<td>
												<s:property value="cultureName" />
											</td>

										</tr>
									</s:iterator>
								</s:if>
								<s:else>
									<tr>
										<td>
											没有符合要求的信息！
										</td>
									</tr>
								</s:else>
							</tbody>
							<tfoot>
							</tfoot>
						</table>
						<script language="javascript">  
						//("表格名称","奇数行背景","偶数行背景","点击后背景");
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背景","偶数行背景");
						 //setcolor("t","#ffffff","#ffffff");
					</script>
					</div>
				</div>
			</s:form>
		</div>
	</body>
</html>

